package com.ziyun.erp.modules.quoteFastPrintMaterial.dao;

import com.ziyun.erp.modules.quoteFastPrintMaterial.entity.QuoteFastPrintMaterialEntity;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 快印工厂
 * 
 * @author llc
 * @email 
 * @date 2018-09-13 08:48:00
 */
@Service("quoteFastPrintMaterialDao")
public interface QuoteFastPrintMaterialDao extends BaseMapper<QuoteFastPrintMaterialEntity> {

    List<QuoteFastPrintMaterialEntity> selectFacotoryMaterialList(Integer id);

    List<String> findAllMaterial();

    List<Map<String,Object>> findAllOptionName2(String optionName);

    List<Map<String,Object>> selectDetailList(@Param("map") Map<String, Object> params);
    //查询已经选择过的option_id List
    List<Integer> selectSelectedlList(@Param("map") Map<String, Object> params);
    //查询已存在工厂材料
   List<QuoteFastPrintMaterialEntity> getMateriallList(@Param("map") Map<String, Object> params);
}
